package cn.rongdao.jrkabao.ui.message.adapter;

import android.content.Context;
import android.view.ViewGroup;

import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerAdapter;
import com.mifengkong.frtools.inputmethod.FRView;

import cn.rongdao.jrkabao.R;
import cn.rongdao.jrkabao.bean.message.MessageBean;

/**
 * Created by jack on 2017/8/17
 */

public class MessageAdapter extends FRBaseRecyclerAdapter<MessageBean, MessageViewHolder> {

    public MessageAdapter(Context context, OnItemClickListener<MessageViewHolder> listener) {
        super(context, listener);
    }

    @Override
    public MessageViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new MessageViewHolder(FRView.inflateLayout(getContext(), R.layout.item_message, parent, false));
    }
}
